/*
 * Copyright (C) Francisco Morero Peyrona. All rights reserved.
 *
 * This software is published under the terms of Open Source
 * License version 1.1, a copy of which has been included with
 * this distribution in the License.txt file.
 */

package jdbcmanager;

import jdbcmanager.swing.*;
import jdbcmanager.app.*;

/**
 * Application entry point class.
 * 
 * @author Francisco Morero Peyrona
 */
public final class Main
{
	/**
	 * Application entry point
	 */
	public static void main( String[] asArg )
	{
		JSplash splash = null;

		try
		{
			splash = new JSplash();
			splash.setVersion( App.sVERSION );
			splash.setVisible( true );

			App.run( (asArg != null && asArg.length > 0) ? asArg[0].trim() : null );
			///App.getFrameMain().openSqlQuery( new jdbcmanager.dbtools.datatypes.DbEntityDescriptor( "Northwind", "Dbo", "Categories" ) );
		}
		catch( Throwable exc )
		{
			App.showException( exc );
		}
		finally
		{
			if( splash != null )
				splash.dispose();
		}
	}
}